home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wtj201.zip / KIYOOKA.ZIP / HEAPTEST.H < prev    next >
C/C++ Source or Header  |  1992-10-23  |  4KB  |  93 lines

  1. //Filename: HEAPTEST.H                                      
  2. //"HEAPTEST" Generated by WindowsMAKER Professional         
  3. //Author: Gen Kiyooka                                       
  4.  
  5.  
  6.  
  7. // Give access to handles in all code modules 
  8. extern HINSTANCE hInst;
  9. extern HWND      MainhWnd;
  10.  
  11. // Constants for error message strings 
  12. #define BLD_CannotRun          4000
  13. #define BLD_CannotCreate       4001
  14. #define BLD_CannotLoadMenu     4002
  15. #define BLD_CannotLoadIcon     4003
  16. #define BLD_CannotLoadBitmap   4004
  17.  
  18. #if !defined(THISISBLDRC)
  19.  
  20. #define windeb_none
  21. #include <WINDEB.H>
  22.  
  23. int  PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow );
  24. LONG FAR PASCAL BLDMainWndProc( HWND hWnd, UINT message, UINT wParam, LONG lParam );
  25. LONG FAR PASCAL BLDDefWindowProc( HWND hWnd, UINT message, UINT wParam, LONG lParam );
  26. BOOL BLDKeyTranslation( MSG *pMsg );
  27. BOOL BLDInitApplication( HANDLE hInst, HANDLE hPrev, int *pCmdShow, LPSTR lpCmd );
  28. BOOL BLDExitApplication( void );
  29. HWND BLDCreateClientControls( char *pTemplateName, FARPROC lpNew );
  30. BOOL BLDInitMainMenu( HWND hWnd );
  31. BOOL BLDMenuCommand( HWND hWnd, UINT message, UINT wParam, LONG lParam );
  32. BOOL BLDRegisterClass( HANDLE hInstance );
  33. HWND BLDCreateWindow( HANDLE hInstance );
  34. int  BLDDisplayMessage(HWND hWnd, unsigned uMsg, char *pContext, int iType );
  35. BOOL BLDSwitchMenu( HWND hWnd, char *pTemplateName );
  36. BOOL BLDDrawBitmap( LPDRAWITEMSTRUCT lpDrawItem, char *pBitmapName, BOOL bStretch );
  37. BOOL BLDDrawIcon( LPDRAWITEMSTRUCT lpDrawItem, char *pIconName );
  38. void BLDMoveWindow( HWND hWnd, int x, int y, int nWidth, int nHeight, BOOL bRepaint );
  39.     
  40. LONG BLD_WM_NCLBUTTONDOWNMsg(HWND hWnd, UINT message, UINT wParam, LONG lParam );
  41. BOOL BLD_HeapCreateUDCFunc(HWND hWnd,UINT message,UINT wParam,LONG lParam);
  42. BOOL BLD_HeapDestroyUDCFunc(HWND hWnd,UINT message,UINT wParam,LONG lParam);
  43. BOOL BLD_HeapAllocUDCFunc(HWND hWnd,UINT message,UINT wParam,LONG lParam);
  44. BOOL BLD_HeapSizeUDCFunc(HWND hWnd,UINT message,UINT wParam,LONG lParam);
  45. BOOL BLD_HeapFreeUDCFunc(HWND hWnd,UINT message,UINT wParam,LONG lParam);
  46. BOOL BLD_ExitUDCFunc(HWND hWnd,UINT message,UINT wParam,LONG lParam);
  47. BOOL FAR PASCAL BLD_AboutDlgProc(HWND hDlg, UINT message , UINT wParam, LONG lParam);
  48. int BLD_AboutDlgFunc(HWND hWnd, UINT message, UINT wParam, LONG lParam );
  49. BOOL BLD_AboutDlgDefault(HWND hWnd, UINT message, UINT wParam, LONG lParam);
  50. BOOL FAR PASCAL BLD_MainWinControlsClProc(HWND hDlg, UINT message, UINT wParam, LONG lParam );
  51. HWND BLD_MainWinControlsClFunc(HWND hWnd, UINT message, UINT wParam, LONG lParam);
  52. BOOL BLD_MainWinControlsDlgDefault(HWND hWnd, UINT message, UINT wParam, LONG lParam);
  53.  
  54. //************************************************************* 
  55. // Variables, types and constants for controls in main window.  
  56. //************************************************************* 
  57.  
  58. extern HWND     hClient;        // Handle to window in client area.   
  59. extern FARPROC  lpClient;       // Function for window in client area.
  60.  
  61. #define CLIENTSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_CAPTION|WS_BORDER|WS_DLGFRAME|WS_SYSMENU|WS_POPUP|WS_THICKFRAME|DS_MODALFRAME
  62.  
  63. typedef struct 
  64.     {
  65.     unsigned long dtStyle;
  66.     BYTE dtItemCount;
  67.     int dtX;
  68.     int dtY;
  69.     int dtCX;
  70.     int dtCY;
  71.     } BLD_DLGTEMPLATE;
  72.  
  73. typedef BLD_DLGTEMPLATE far     *LPBLD_DLGTEMPLATE;
  74.  
  75. #endif
  76.  
  77. #define WMPDEBUG 
  78.     
  79.     
  80. // User Defined ID Values
  81.     
  82. #define IDB_CREATE                              10000
  83. #define IDB_DESTROY                             10001
  84. #define IDB_ALLOC                               10002
  85. #define IDB_SIZE                                10003
  86. #define IDB_FREE                                10004
  87. #define IDEC_SIZE                               10005
  88. #define IDB_ABOUT                               10006
  89. #define IDB_EXIT                                10007
  90.     
  91. // WindowsMAKER Pro generated ID Values
  92.     
  93.